package com.ruoyi.factorydata.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 工位数据对象 station_data
 *
 * @author ruoyi
 * @date 2025-06-23
 */
@Data
@TableName(resultMap = "com.ruoyi.factorydata.mapper.StationDataMapper.StationDataResult")
public class StationData extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 所属生产线id
     */
    @Excel(name = "所属生产线id")
    private Long productionLineId;

    /**
     * 工位名称
     */
    @Excel(name = "工位名称")
    private String name;

    /**
     * 工位编码
     */
    @Excel(name = "工位编码")
    private String stationCode;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remarks;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,2=代表删除")
    @TableLogic(value = "0", delval = "2")
    private String delFlag;

    /**
     * 版本号
     */
    @Excel(name = "版本号")
    @Version
    private Long version;
    /**
     * 设备类型
     */
    @TableField(exist = false)
    private Long equipmentDatatype;
    /**
     * 设备id
     */
    @TableField(exist = false)
    private String equipmentDataId;

    /** 设备ID */
    @TableField(exist = false)
    private Long equipmentId;

    /** 设备名称 */
    @TableField(exist = false)
    private String equipmentName;
    /**
     * 设备分类
     */
    @TableField(exist = false)
    private Long equipmentType;

}